<!DOCTYPE html>
<html lang="zh-cn">
   <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <title>{$CONF['mallTitle']}后台管理中心</title>
      <link href="__PUBLIC__/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
      <link href="__ROOT__/Apps/Admin/View/css/AdminLTE.css" rel="stylesheet" type="text/css" />
      <!--[if lt IE 9]>
      <script src="__PUBLIC__/js/html5shiv.min.js"></script>
      <script src="__PUBLIC__/js/respond.min.js"></script>
      <![endif]-->
      <script src="__PUBLIC__/js/jquery.min.js"></script>
      <script src="__PUBLIC__/plugins/bootstrap/js/bootstrap.min.js"></script>
      <script src="__PUBLIC__/js/common.js"></script>
      <script src="__PUBLIC__/plugins/plugins/plugins.js"></script>
   </head>
   <script>
   function del(id,type){
	   var msg = (type==1)?'该会员为商家会员，您确定要删除该商家信息吗？':'您确定要删除该会员信息吗?';
	   Plugins.confirm({title:'信息提示',content:msg,okText:'确定',cancelText:'取消',okFun:function(){
		   Plugins.closeWindow();
		   Plugins.waitTips({title:'信息提示',content:'正在操作，请稍后...'});
		   $.post("{:U('Admin/Users/del')}",{id:id},function(data,textStatus){
					var json = MXC.toJson(data);
					if(json.status=='1'){
						Plugins.setWaitTipsMsg({content:'操作成功',timeout:1000,callback:function(){
						   location.reload();
						}});
					}else{
						Plugins.closeWindow();
						Plugins.Tips({title:'信息提示',icon:'error',content:'操作失败!',timeout:1000});
					}
				});
	   }});
   }
   </script>
   <body class='mxc-page'>
    <form method='get' action='{:U("Admin/Users/cashList")}'>
       <div class='mxc-tbar'>
       用户手机：<input type='text' id='userPhone' name='userPhone' class='form-control mxc-ipt-10' value='{$userPhone}'/>
       受理状态：<select name="status">
       				<option value="0" <if condition="$status == 0">selected</if>>未转账</option>
       				<option value="-1" <if condition="$status == -1">selected</if>>转账失败</option>
       				<option value="1" <if condition="$status == 1">selected</if>>转账成功</option>
       			</select>
       <button type="submit" class="btn btn-primary glyphicon glyphicon-search">查询</button> 
       </div>
       </form>
       <div class="mxc-body">
        <table class="table table-hover table-striped table-bordered mxc-list">
           <thead>
             <tr>
               <th width='30'>&nbsp;</th>
               <th width='80'>用户ID</th>
               <th width='80'>用户手机</th>
               <th width='130'>姓名</th>
               <th width='80'>金额</th>
               <th width='100'>银行</th>
               <th width='100'>时间</th> 
               <th width='70'>操作</th> 
             </tr>
           </thead>
           <tbody>
            <volist name="Page['root']" id="vo" key='i'>
             <tr>
               <td>{$i}</td>
               <td>{$vo['userId']}</td>
               <td>{$vo['userPhone']}&nbsp;</td>
               <td>{$vo['userName']}&nbsp;</td>
               <td>{$vo['price']}&nbsp;</td>
               <td>{$vo['bankName']}&nbsp;</td>
               <td>{$vo['cashTime']}&nbsp;</td>
               <td>
               	<if condition="$vo['status'] == 0">
               	<a class="btn btn-default glyphicon glyphicon-pencil" href="{:U('Admin/Users/doCash/cashId/'.$vo['cashId'])}">受理</a>&nbsp;
                <else />
                <a class="btn btn-default glyphicon glyphicon-pencil" href="{:U('Admin/Users/doCash/cashId/'.$vo['cashId'] . '/status/' . $vo['status'])}">查看</a>&nbsp;
                </if>
                </td>
             </tr>
             </volist>
             <tr>
                <td colspan='11' align='center'>{$Page['pager']}</td>
             </tr>
           </tbody>
        </table>
       </div>
   </body>
</html>